<?php $this->load->view('common/admin_header');?>
<div class="block">
  <div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2><?=$lang['admin_lable_12']?></h2>
    <ul>
      <li><a href="javascript:void(0);" onClick="delete_item('<?=site_url("admins/operator/delete_all")?>');"><?=$lang['admin_lable_12']?></a></li>
    </ul>
  </div>
  <!-- .block_head ends -->
  <div class="block_content">
    <p class="breadcrumb"><?=$lang['global_lable_14']?> &raquo; <a href="<?=site_url('admins/index')?>"><?=$lang['global_lable_11']?></a> &raquo; <?=$lang['admin_lable_1']?> &raquo; <strong><?=$lang['admin_lable_12']?></strong></p>
    <?php $this->load->view('common/notify');?>
    <form action="<?=site_url('admins/operator')?>" method="get">
      <input type="hidden" name="field" value="<?=isset($field)?$field:'add_time'?>" id="field">
      <input type="hidden" name="sort" value="<?=isset($sort)?$sort:'desc'?>" id="sort">
      <table cellpadding="0" cellspacing="0" width="100%" class="sortable">
        <thead>
          <tr>
            <th><a id="title" class="<?=isset($field) && $field=='title'?$sort:'';?>" href="#"><?=$lang['admin_lable_13']?></a></th>
            <th><a id="operator" class="<?=isset($field) && $field=='operator'?$sort:'';?>" href="#"><?=$lang['admin_lable_14']?></a></th>
            <th><a id="action" class="<?=isset($field) && $field=='action'?$sort:'';?>" href="#"><?=$lang['global_lable_21']?></a></th>
            <th><a id="result" class="<?=isset($field) && $field=='result'?$sort:'';?>" href="#"><?=$lang['admin_lable_15']?></a></th>
            <th><a id="urls" class="<?=isset($field) && $field=='urls'?$sort:'';?>" href="#"><?=$lang['admin_lable_16']?></a></th>
            <th><a id="add_time" class="<?=isset($field) && $field=='add_time'?$sort:'';?>" href="#"><?=$lang['admin_lable_17']?></a></th>
            <th style="text-align:center"><?=$lang['global_lable_21']?></th>
          </tr>
          <tr>
            <td><input type="text" class="stext" name="title" lang="zh-TW" x-webkit-speech x-webkit-grammar="bUIltin:search" value="<?=isset($title)?$title:''?>"></td>
            <td><input type="text" class="stext" name="operator" lang="zh-TW" x-webkit-speech x-webkit-grammar="bUIltin:search" value="<?=isset($operator)?$operator:''?>"></td>
            <td><input type="text" class="stext" name="action" lang="zh-TW" x-webkit-speech x-webkit-grammar="bUIltin:search" value="<?=isset($action)?$action:''?>"></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td style="text-align:center"><input type="submit" class="btn btn-small btn-primary" name="sub_filter" value="<?=$lang['global_lable_22']?>"></td>
          </tr>
        </thead>
        <tbody class="table">
          <?php if(isset($lists_count) && $lists_count>0):?>
          <?php foreach($lists->result_array() as $list):
            $urls=site_url('admins/operator/%s/'.$list['id']);
          ?>
          <tr>
            <td title="<?=$list['title']?>"><?=mb_substr($list['title'],0,17,'utf-8')?>
              <?php if(mb_strlen($list['title'])>17) echo '...';?></td>
            <td><?=$list['operator']?></td>
            <td><?=$list['action']?></td>
            <td><?=$list['result']?></td>
            <td><?=$list['urls']?></td>
            <td><?=date($format_time,$list['add_time'])?></td>
            <td>&nbsp;</td>
          </tr>
          <?php endforeach;?>
          <?php else:?>
          <tr>
            <td colspan="9" class="nodata"><p><?=$lang['global_lable_42']?></p></td>
          </tr>
          <?php endif;?>
        </tbody>
      </table>
      <!-- .tableactions ends -->
      <div id="pagination"><?php echo $pagination;?><div class="listscount"><?=$lang['global_lable_29']?> <?=$lists_count?> <?=$lang['global_lable_30']?></div></div>
      <!-- .pagination ends -->
    </form>
  </div>
  <!-- .block_content ends -->
  <div class="bendl"></div>
  <div class="bendr"></div>
</div>
<!-- .block ends -->
<?php $this->load->view('common/admin_footer');?>
